Skip to content

refactor: move baseUrl fallback logic to paths-plugin.ts#32677

Merged
alan-agius4 merged 3 commits intoangular:mainfrom
alan-agius4:webpack-base-url
Mar 4, 2026
Merged

refactor: move baseUrl fallback logic to paths-plugin.ts#32677
alan-agius4 merged 3 commits intoangular:mainfrom
alan-agius4:webpack-base-url

Conversation

@alan-agius4
Copy link
Collaborator

This ensure that we do not set baseUrl internally which would trigger a deprecation warning.

This ensure that we do not set `baseUrl` internally which would trigger a deprecation warning.
@alan-agius4 alan-agius4 added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels Mar 4, 2026
@alan-agius4 alan-agius4 removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Mar 4, 2026
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the fallback logic for baseUrl by moving it from AngularWebpackPlugin to TypeScriptPathsPlugin. This is a good change as it centralizes the path-related logic and avoids modifying the compilerOptions object directly, which helps prevent a deprecation warning. My review includes a minor suggestion to improve the type assertion in paths-plugin.ts for better type safety and code clarity.

@alan-agius4 alan-agius4 added the action: merge The PR is ready for merge by the caretaker label Mar 4, 2026
@alan-agius4 alan-agius4 merged commit 6340666 into angular:main Mar 4, 2026
34 checks passed
@alan-agius4
Copy link
Collaborator Author

This PR was merged into the repository. The changes were merged into the following branches:

@alan-agius4 alan-agius4 deleted the webpack-base-url branch March 4, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

action: merge The PR is ready for merge by the caretaker target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants